package org.bright.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.bright.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 采购订单表 记录采购订单信息
 * </p>
 *
 * @author bright
 * @since 2024-12-10 04:12
 */
@Getter
@Setter
@TableName("purchase_orders")
@Schema(name = "PurchaseOrders", description = "采购订单表 记录采购订单信息")
public class PurchaseOrders extends BaseEntity {

    @Schema(description = "订单唯一标识符")
//    @TableId(value = "order_id", type = IdType.AUTO)
    private String orderId;

    @Schema(description = "供应商Id")
//    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Integer supplierId;

    @Schema(description = "订单日期")
    @TableField("order_date")
    private Date orderDate;

    @Schema(description = "总金额")
    @TableField("total_amount")
    private Double totalAmount;

    @Schema(description = "订单状态 0：未发货   1：已发货  2：已收货")
    @TableField("status")
    private Byte status;

    @Schema(description = "父订单id")
    @TableField("pod_id")
    private Integer podId;
}
